package com.powernode.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * 常用 错误响应 状态码枚举类
 */
@AllArgsConstructor
public enum BusinessEnum {
    UN_AUTHORIZATION(401, "未授权"),
    OPERATION_FAIL(-1, "操作失败"),
    ACCESS_DENY_FAIL(403 , "权限不足,请联系管理员")
    ;

    @Getter
    private Integer code;

    @Getter
    private String msg;
}
